//
//  TabelViewPresentViewController.h
//  FashionShow
//
//  Created by 张龙 on 2017/3/7.
//
//

#import "TPKeyboardAvoidingTableView.h"
typedef NS_ENUM(NSInteger, KPopularityListType) {
    KPopularityListDayType = 0,  //学生
    KPopularityListWeekType = 1, //老师
    KPopularityListMonthType = 2, //家长
};
typedef NS_ENUM(NSInteger, KHomeWorkType) {
    KCurrentHomeWorkType = 0,  //课堂作业
    KBackHomeWorkType = 1, //课后作业
};

@interface TableViewPresentViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>
@property (strong, nonatomic) TPKeyboardAvoidingTableView *tableView;
- (instancetype)initWithStyle:(UITableViewStyle)style;
@property (nonatomic,copy) NSString *titleStr;

//榜单的类型
@property (nonatomic,assign) KPopularityListType popularityListType;//
//作业列表的类型
@property (nonatomic,assign) KHomeWorkType homeworkType;
@property (nonatomic,copy) NSString *subjectIDStr;//榜单的subject_id

@property(nonatomic,assign)BOOL isMorePage;
@property(nonatomic,assign)NSInteger pageNo;
@property(nonatomic,assign)int type;//上拉  下拉;

@property(nonatomic,weak) UIImageView *noDataImageView;   //没有数据时展示的图片
@property(nonatomic,weak) UILabel *noDataLabel; //没有数据展示的label
/**
 *  集成刷新控件
 */
- (void)setupRefresh;
- (void)refreshCount:(NSInteger)count noDataText:(NSString *)text totalRow:(NSString *)totalRow;
@end
